package com.onpositive.knowledge.model.impl;

public class PropertyTypeImpl {

	String ptype;
	
	
	public PropertyTypeImpl(String type) {
		super();
		this.ptype = type;
	}


	@Override
	public String toString() {
		return ptype;
	}
	

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((ptype == null) ? 0 : ptype.hashCode());
		return result;
	}


	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		PropertyTypeImpl other = (PropertyTypeImpl) obj;
		if (ptype == null) {
			if (other.ptype != null)
				return false;
		} else if (!ptype.equals(other.ptype))
			return false;
		return true;
	}
}
